package com.handinglian.ai.system.mapper;

import com.handinglian.ai.system.entity.Menu;
import java.util.Collection;import java.util.List;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface MenuMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Menu record);

    int insertOrUpdate(Menu record);

    int insertOrUpdateSelective(Menu record);

    int insertSelective(Menu record);

    Menu selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Menu record);

    int updateByPrimaryKey(Menu record);

    int updateBatch(List<Menu> list);

    int batchInsert(@Param("list") List<Menu> list);

    List<Menu> findByParentIdIn(@Param("parentIdCollection") Collection<Integer> parentIdCollection);
}